package proyecto.modelo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the sala database table.
 * 
 */
@Entity
@Table(name="sala")
public class Sala implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int in_codSala;

	private byte bo_sala3D;

	private byte bo_salaCineBar;

	private int in_nroButacas;

	//bi-directional many-to-one association to Cartelera
	@OneToMany(mappedBy="sala")
	private Set<Cartelera> carteleras;

	//bi-directional many-to-one association to Cine
    @ManyToOne
	private Cine cine;

    public Sala() {
    }

	public int getIn_codSala() {
		return this.in_codSala;
	}

	public void setIn_codSala(int in_codSala) {
		this.in_codSala = in_codSala;
	}

	public byte getBo_sala3D() {
		return this.bo_sala3D;
	}

	public void setBo_sala3D(byte bo_sala3D) {
		this.bo_sala3D = bo_sala3D;
	}

	public byte getBo_salaCineBar() {
		return this.bo_salaCineBar;
	}

	public void setBo_salaCineBar(byte bo_salaCineBar) {
		this.bo_salaCineBar = bo_salaCineBar;
	}

	public int getIn_nroButacas() {
		return this.in_nroButacas;
	}

	public void setIn_nroButacas(int in_nroButacas) {
		this.in_nroButacas = in_nroButacas;
	}

	public Set<Cartelera> getCarteleras() {
		return this.carteleras;
	}

	public void setCarteleras(Set<Cartelera> carteleras) {
		this.carteleras = carteleras;
	}
	
	public Cine getCine() {
		return this.cine;
	}

	public void setCine(Cine cine) {
		this.cine = cine;
	}
	
}